package com.zy.edu.service;

import com.zy.edu.bean.CourseChapter;
import com.zy.edu.bean.CourseChapterVideo;
import com.baomidou.mybatisplus.service.IService;
import com.zy.edu.bean.CourseChapterVideoCls;
import com.zy.edu.bean.InputParam;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-24
 */
public interface CourseChapterVideoService extends IService<CourseChapterVideo> {
    public Map saveOrUpdate(CourseChapterVideo courseChapterVideo, InputParam inputParam);
    public Map list(CourseChapterVideo courseChapterVideo, InputParam inputParam);
    public Map dele( CourseChapterVideo courseChapterVideo) throws Exception;

    //获取视频的信息，以及该视频的播放记录（根据角色，只有老师和学生会触发）
    Map getById(CourseChapterVideo courseChapterVideo, InputParam inputParam);

    Map saveRecord(CourseChapterVideoCls courseChapterVideoCls, InputParam inputParam);
}
